package org.comple.erp.remote.sales;


import org.comple.erp.utils.AjaxResult;
import org.springframework.web.bind.annotation.*;

import java.math.BigDecimal;
import java.util.Map;

public interface GetSaleSlipRemote {
    //    根据客户拿到已审核的销售单
    @RequestMapping("/getSaleOrders")
    AjaxResult getSaleSlipList(@RequestParam("id") String id);

    //    拿到销售单详情
    @RequestMapping("/getSaleSlip")
    AjaxResult getSaleSlip(@RequestParam("id") String id);


    //修改核销金额
    @PostMapping("/updateSlipList")
    AjaxResult updateSlipList(@RequestBody Map<String, Object> params);

    //销售单：修改仓库完成状态
    @PostMapping("/updateWarehouseState")
    String updateWarehouseState(@RequestParam("id") String id,@RequestParam("warehouseState") String warehouseState);

    //销售明细：修改明细的出入库数量
    @PostMapping("/updateOutbound")
    String updateOutbound(@RequestParam("id") String id,@RequestParam("outbound") Integer outbound);
}
